@import "~scss/variables";

.sw-settings-cache {
    .sw-card .sw-card__content {
        padding-top: 0;
    }

    .sw-settings-cache__card-indexes {
        .sw-container + .sw-container {
            margin-top: 30px;
        }

        .mt-select {
            margin-bottom: 0;
        }
    }

    &__indexers-entry {
        padding: 4px 8px;
        border-radius: $border-radius-default;

        &:hover {
            background-color: lighten($color-shopware-brand-500, 40%);
        }

        &.sw-field--checkbox {
            margin-bottom: 8px;
        }
    }

    .sw-card-section {
        width: 100%;
        padding: 30px 0;

        &--secondary {
            padding: 30px;
        }
    }
}

.sw-settings-cache__card-toolbar {
    width: 100%;
    row-gap: 25px;

    &-heading {
        font-weight: $font-weight-semi-bold;
    }
}

.sw-settings-cache__card-section-heading {
    font-weight: $font-weight-semi-bold;
}

.sw-settings-cache__indexers-list {
    list-style: none;
    font-size: $font-size-xs;
    padding-top: 8px;
    margin: 0 12px;

    & > li {
        & > ul {
            list-style: none;
            margin-left: 25px;
        }
    }
}

.sw-settings-cache__indexers-placeholder {
    &.sw-label.sw-label--ghost {
        border-color: transparent;
    }
}

.sw-settings-cache__indexers-select {
    &.sw-field {
        margin: 0;
    }

    &.sw-select {
        .sw-select__selection {
            padding-top: 8px;
        }
    }
}

.sw-settings-cache__skip-indexers-select {
    &.sw-field {
        margin-bottom: 0;
    }
}
